package org.dioib.practice.zero;

public class TestRun {

    public static void main(String[] args) {
        // 编译错误：不能使用基本类型
//        List<int> intList = new ArrayList<int>();
//        Map<double, String> doubleMap = new HashMap<double, String>();
//        class ArrayExample<T> {
//            // 编译错误：不能创建泛型数组
//            private T[] array = new T[10];
//
//            public void createArray() {
//                // 编译错误
//                T[] localArray = new T[5];
//            }
//        }

        System.out.println(CustomEnum.SUMMER);
        System.out.println(CustomEnum.AUTUMN);
        System.out.println(CustomEnum.SUMMER);
        CustomEnum ce = CustomEnum.SPRING;
        System.out.println(ce);
        System.out.println("=============================");
        System.out.println(Season.SUMMER);
        System.out.println(Season.SPRING);
        Season a = Season.AUTUMN;
        System.out.println(a.getName()+"：："+a.getDesc()+"：："+a.ordinal());
        System.out.println(a.name()+"：："+a.getDesc()+"：："+a.ordinal());
    }
}
